export default defineAppConfig({
	pages: [
		'pages/index/index',
		'pages/solid/index',
		'pages/liquid/index',
		'pages/my/index',
		'pages/computedResult/index',
		'pages/myFormula/index',
		'pages/formulaDetail/index',
		'pages/reference/index',
		'pages/referenceFormula/index',
		'pages/about/index',
		'pages/notice/index',
	],
	subpackages: [
		{
			root: 'packageOil',
			pages: ['pages/oilList/index', 'pages/editOilInfo/index'],
			independent: false, // 是否独立分包（可选）
		},
	],
	window: {
		backgroundColor: '#f7f8fa',
		backgroundTextStyle: 'light',
		navigationBarBackgroundColor: '#fff',
		navigationBarTitleText: '皂作时光',
		navigationBarTextStyle: 'black',
	},
	tabBar: {
		custom: false, //不需要自定义tabbar就false
		color: '#000000',
		selectedColor: '#000000',
		backgroundColor: '#fff',
		list: [
			{
				pagePath: 'pages/index/index',
				text: '首页',
				iconPath: 'assets/home.png',
				selectedIconPath: 'assets/home.png',
			},
			{
				pagePath: 'pages/my/index',
				text: '我的',
				iconPath: 'assets/my.png',
				selectedIconPath: 'assets/my.png',
			},
		],
	},
	usingComponents: {},
	//按需注入必要的代码，以降低小程序的启动时间和运行时内存
	lazyCodeLoading: 'requiredComponents',
});
